import { Result, Button } from "antd";
import { useNavigate } from "react-router-dom";

const NotFound = () => {
  const navigate = useNavigate();

  return (
    <Result
      status={404}
      title="404"
      subTitle={404}
      extra={
        <Button
          type="primary"
          onClick={() => {
            navigate("/");
          }}
        >
          home
        </Button>
      }
    />
  );
};

export default NotFound;
